package com.opencloud.tenant.client.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.opencloud.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 租户角色表
 *
 * @author admin
 * @date 2021-03-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@TableName("tenant_sys_role")
@ApiModel(value="SysRole对象", description="租户角色表")
public class SysRole extends AbstractEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "租户ID")
    private String tenantId;

    @ApiModelProperty(value = "父主键")
    private Integer parentId;

    @ApiModelProperty(value = "角色名")
    private String roleName;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "角色别名 admin")
    private String roleAlias;

    @ApiModelProperty(value = "是否已删除")
    private Integer isDeleted;


}
